<include file="Public:header" />
<!-- end nav -->

<!-- begin container -->

<div class=" container-fuid ">

	<div class="row">
		<div class="col-lg-12 col-md-12 col-xs-12" style="background-color: #FFF;">

			<!-- begin tab -->
			<ul class="nav nav-tabs " >
				<li>
					<a href="{:U('Foodcat/index/')}" > <b>商品分类</b>
					</a>
				</li>
				<li>
					<a href="{:U('Foodcat/add/')}" > <b>分类增加</b>
					</a>
				</li>
				<li>
					<a href="{:U('Food/index/')}" >
						<b>商品维护</b>
					</a>
				</li>
				<li class="active">
					<a href="{:U('Food/add/')}" >
						<b>商品增加</b>
					</a>
				</li>

			</ul>
			<p></P>

			<div class="row">
				<div class="col-lg-2 col-md-2 col-xs-2" ></div>
				<div class="col-lg-6 col-md-6 col-xs-6" >
					<span class="help-block"></span>
				</div>
				<div class="col-lg-4 col-md-4 col-xs-4" ></div>

			</div>
			<p></P>

			<form class="form-horizontal"role="form" enctype="multipart/form-data" action="{:U('Food/addsave/')}" method="post">

				<div class="form-group">
					<label for="inputEmail3" class="col-sm-2 control-label">商品名称</label>
					<div class="col-sm-4">
						<input type="text" class="form-control" id="inputEmail3" name="fname" value=""></div>
					<div class="col-sm-6">
						<span class="help-block"> <i class="fa fa-exclamation"></i>
							菜品名称，如水煮肉片
						</span>
					</div>
				</div>
				<div class="form-group">
					<label for="inputEmail5" class="col-sm-2 control-label">菜品分类</label>
					<div class="col-sm-3">
						<select class="form-control" name="fcid">

							<volist name="foodcatlist" id="vo">
								<option value="{$vo.fcid}">{$vo.fcname}</option>
							</volist>
						</select>

					</div>
					<div class="col-sm-7">
						<span class="help-block"> <i class="fa fa-exclamation"></i>
							请输入选择分类
						</span>
					</span>
				</div>
			</div>

			<div class="form-group">
				<label for="inputEmail8" class="col-sm-2 control-label">菜品图片</label>
				<div class="col-sm-4">

					<input type="file" name="pic" id="exampleInputFile"></div>
				<div class="col-sm-6">
					<span class="help-block">仅支持jpg,可不设置</span>
				</div>
			</div>
			<div class="form-group">
				<label for="inputEmail3" class="col-sm-2 control-label">菜品价格</label>
				<div class="col-sm-2">
					<input type="text" class="form-control" id="inputEmail3" name="fprice" value=""></div>
				<div class="col-sm-8">
					<span class="help-block">
						<i class="fa fa-exclamation"></i>
						请输入产品价格
					</span>
				</div>
			</div>

			<div class="form-group">
				<label for="inputEmail11" class="col-sm-2 control-label">内容</label>
				<div class="col-sm-6">

					<textarea class="form-control" name="fcontent" rows="3"></textarea>

				</div>
				<div class="col-sm-4">
					<span class="help-block"></span>
				</div>
			</div>
			<div class="form-group">
				<label for="inputEmail3" class="col-sm-2 control-label">排序</label>
				<div class="col-sm-4">
					<input type="text" class="form-control" id="inputEmail3" name="fsort" value="0"></div>
				<div class="col-sm-6">
					<span class="help-block">
						<i class="fa fa-exclamation"></i>
						排序值0-99，值越大越向前
					</span>
				</div>
			</div>

			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
				<button type="sumbit" class="btn btn-primary">保存</button>
			</div>

		</div>
	</form>

</div>
<!-- col end -->

</div>
<!-- end container -->

<!-- /.modal -->

<br>
<br>

<include file="Public:foot" />